<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      // var xd = true;
      // console.log(typeof xd);

      // var str = '123';
      // console.log(Boolean(''));

      // var num = NaN;
      // console.log(Boolean(num));

      // var list = [];
      // console.log(Boolean(list));
      // console.log(list == true);

      // console.log(Boolean(NaN));
      // console.log(Number('123'));

      // console.log(Number([1, 2]));
      // console.log([1, 2] == true);

      // var str = '';
      // console.log(!!str);

      var num = null;
      console.log(!!num);
    </script>
  </body>
</html>
